Skip to content

Support for IPv6-based extensions - #13

Closed
hach-que wants to merge 4 commits into
ldx:masterfrom
hach-que:master
Closed

hach-que wants to merge 4 commits into
ldx:masterfrom
hach-que:master

Conversation

@hach-que

@hach-que hach-que commented Sep 1, 2012

Copy link
Copy Markdown

Since the last official version of this library was worked on, a lot of the iptables extensions have moved to use the extension system that supports IPv6 and dropped support for the original 'extra_opts' method. This pull request adds support for setting extensions in the new system so that features like MARK and udp port selection work again.

@ghost

ghost commented Sep 4, 2012

Copy link
Copy Markdown

When attempting to build this patch in ubuntu 12.04 I get an error: ../iptables/include/xtables.h.in: No such file or directory.

Just need to change line 6 of wrapper.c to #include <xtables.h> and then it compiles correctly

@ghost

ghost commented Sep 4, 2012

Copy link
Copy Markdown

I'm also getting an error when attempting to use this with SNAT.

Ubuntu 12.04 64-bit: Kernel 3.2.0-27-generic

*** glibc detected *** python: realloc(): invalid pointer 0x.....

Backtrace includes:
libxtables.so.7(xtables_option_tpcall+0xf1)
libxtwrapper.so(wrap_tpcall+0x6c)

@hach-que

hach-que commented Sep 4, 2012

Copy link
Copy Markdown
Author

Yeah the implementation seems to be really buggy for me as well. I ended up just starting an iptables process with the arguments I wanted in order to add rules with extended options.

There's a lot of data fields which seem to be initialized in different places for the extension mechanism, and it's not really clear from the iptables source code where everything happens, so it's a bit hard to make it work.

@ldx

ldx commented Jan 25, 2013

Copy link
Copy Markdown
Owner

Please take a look at HEAD and http://nilvec.com/python-iptables-update/ - if you experience problems please open a new ticket.

@ldx ldx closed this Jan 25, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants